package builder;

public class ConcreteComputerBuilder implements ComputerBuilder {
    private Computer computer = new Computer();

    @Override
    public void buildProcessor(String type) {
        computer.setProcessor(new Processor(type));
    }

    @Override
    public void buildMemory(int size) {
        computer.setMemory(new Memory(size));
    }

    @Override
    public void buildHardDisk(int capacity) {
        computer.setHardDisk(new HardDisk(capacity));
    }

    @Override
    public Computer getResult() {
        return computer;
    }
}
